.chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-header {
    padding: 15px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-header span {
    font-weight: 600;
    font-size: 1.1em;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    animation: messageAppear 0.3s ease;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background: #e3f2fd;
    color: #1565c0;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: #4a6cf7;
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 8px;
    resize: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #4a6cf7;
}

.send-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: translateY(-1px);
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    transition: transform 0.2s ease;
}

.minimize-btn:hover {
    transform: scale(1.1);
}

.chat-box.minimized {
    height: 60px;
}

.chat-box.minimized .chat-messages,
.chat-box.minimized .chat-input {
    display: none;
} 